type github.com/gotd/td/telegram/downloader.observer
19 uses
github.com/gotd/td/telegram/downloader (current package)
downloader.go#L31: obs *observer
metrics.go#L74: type observer struct {
metrics.go#L101: func newObserver(mp metric.MeterProvider, lg log.Logger) *observer {
metrics.go#L106: o := &observer{log: log.For(lg)}
metrics.go#L162: func (o *observer) with(ctx context.Context) context.Context {
metrics.go#L170: func observerFrom(ctx context.Context) *observer {
metrics.go#L171: o, _ := ctx.Value(observerKey{}).(*observer)
metrics.go#L201: func (o *observer) request(ctx context.Context, kind string, start time.Time, n int, err error) {
metrics.go#L214: func (o *observer) download(ctx context.Context, err error) {
metrics.go#L231: func (o *observer) resume(ctx context.Context, offset int64) {
metrics.go#L239: func (o *observer) cdnRedirect(ctx context.Context, dc int) {
metrics.go#L247: func (o *observer) cdnReupload(ctx context.Context, dc int) {
metrics.go#L255: func (o *observer) hashMismatch(ctx context.Context, kind string, offset int64) {
metrics.go#L263: func (o *observer) refresh(ctx context.Context, result string, err error) {
metrics.go#L275: func (o *observer) backoff(ctx context.Context, err error) {
metrics.go#L287: func (o *observer) verified(ctx context.Context, verified, size int64, err error) {
metrics.go#L308: func (o *observer) retry(e RetryEvent) {
metrics.go#L321: func (o *observer) exhausted(ctx context.Context, op string, err error) {
metrics.go#L330: func (o *observer) wrapRetry(h RetryHandler) RetryHandler {
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |